import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App';
//引入浏览器路由
import {BrowserRouter} from "react-router-dom";
//引入 react-redux
import {Provider} from "react-redux";
//引入store
import store from './store'
//引入框架 ant 的css
import 'antd/dist/antd.css';
//引入公共css
import './assets/scss/base.scss'

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
    <React.StrictMode>
        {/*//将store 的数据传递下去*/}
        <Provider store={store}>
            <BrowserRouter>
                <App />
            </BrowserRouter>
        </Provider>
    </React.StrictMode>
)